﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace SmartProduction.Infarstructrue.Migrations
{
    public partial class Bom2 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropPrimaryKey(
                name: "PK_MaterialLists",
                table: "MaterialLists");

            migrationBuilder.RenameTable(
                name: "MaterialLists",
                newName: "MaterialList");

            migrationBuilder.AddPrimaryKey(
                name: "PK_MaterialList",
                table: "MaterialList",
                column: "MaterialId");
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropPrimaryKey(
                name: "PK_MaterialList",
                table: "MaterialList");

            migrationBuilder.RenameTable(
                name: "MaterialList",
                newName: "MaterialLists");

            migrationBuilder.AddPrimaryKey(
                name: "PK_MaterialLists",
                table: "MaterialLists",
                column: "MaterialId");
        }
    }
}
